import React from 'react';
import { Router, Route, IndexRoute } from 'dva/router';
import App from './routes/app'
import Home from './routes/home/home'
import Error from './routes/error'


/*
 * ({history}) =>
 <Router history={history}>
 <Route path="/" component={HomePage} />
 </Router>

 * */
function RouterConfig({ history, app }) {
  return (
    <Router history={history}>
      {/*<Route path="/" component={App} >*/}
        {/*<IndexRoute name="home" component={Home} />*/}
        {/*<Route path="home" component={Home} />*/}
        {/*<Route path="*" component={Error} />*/}
      {/*</Route>*/}
    </Router>
  );
}

export default RouterConfig;
